package com.shejimoshi.单例模式.深浅克隆.深克隆.使用序列化进行深度复制;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

@Data
@Builder
public class Man implements Serializable {
    private String name;
    private Person person;

    @Override
    public String toString() {
        return "Man{" +
                "name='" + name + '\'' +
                ", person=" + person +
                '}';
    }
}
